package com.basic.business.prodRel.domain;

import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 业务-商品关系明细对象 t_prod_rel_details
 * 
 * @author zhaoxy_jn@163.com
 * @date 2025-03-04
 */
@Getter
@Setter
public class TProdRelDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 主表id */
    private String mainId;

    /** 店铺id */
    private String shopId;

    /** 素材表id */
    private String imgId;

    /** 桶地址 */
    private String bucketUrl;

    /** 素材png路径 */
    private String imgPngPath;

    /** 文件数量 */
    private Integer imgNum;

    /** 文件尺寸 */
    private String imgDimensions;

    /** 文件材质 */
    private String imgMaterial;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }

    public TProdRelDetails()
    {
        this.id = ULID.getId();
    }

    @Override
    public String toString() {
        return "TProdRelDetails{" +
                "id='" + id + '\'' +
                ", mainId='" + mainId + '\'' +
                ", shopId='" + shopId + '\'' +
                ", imgId='" + imgId + '\'' +
                ", bucketUrl='" + bucketUrl + '\'' +
                ", imgPngPath='" + imgPngPath + '\'' +
                ", imgNum=" + imgNum +
                ", imgDimensions='" + imgDimensions + '\'' +
                ", imgMaterial='" + imgMaterial + '\'' +
                '}';
    }
}
